import {useRoutes} from 'react-router-dom'
import Home from '../views/Home'
import City from '../views/City'
const RouterView = () => {
  const routes = useRoutes([
    {
      path: "/home",
      element: <Home/>
    }, {
      path: "/city",
      element: <City/>
    }
  ])
  return routes;
}
export default RouterView;